PangoGravity

PangoGravity represents the orientation of glyphs in a segment of text.

This is useful when rendering vertical text layouts. In those situations, the layout is rotated using a non-identity [struct@Pango.Matrix], and then glyph orientation is controlled using PangoGravity.

Not every value in this enumeration makes sense for every usage of PangoGravity; for example, %PANGO_GRAVITY_AUTO only can be passed to [method@Pango.Context.set_base_gravity] and can only be returned by [method@Pango.Context.get_base_gravity].

See also: [enum@Pango.GravityHint]

Values

ValueMeaning
SOUTH0

Glyphs stand upright (default) <img align="right" valign="center" src="m-south.png">

EAST1

Glyphs are rotated 90 degrees counter-clockwise. <img align="right" valign="center" src="m-east.png">

NORTH2

Glyphs are upside-down. <img align="right" valign="cener" src="m-north.png">

WEST3

Glyphs are rotated 90 degrees clockwise. <img align="right" valign="center" src="m-west.png">

AUTO4

Gravity is resolved from the context matrix

Meta

Since

1.16